package com.ruoyi.common.model.excel.res;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
public class ExcelImportErrorRes<T> extends ExcelImportRes {

    /** 错误数量 **/
    private Integer errorAmount;

    /** 错误数据列表 **/
    private List<ExcelImportErrorData<T>> errorList;

    public ExcelImportErrorRes(Integer totalAmount, Integer errorAmount, List<ExcelImportErrorData<T>> errorList) {
        super(totalAmount);
        this.errorAmount = errorAmount;
        this.errorList = errorList;
    }
}